﻿using System;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;

namespace ConsoleApp
{
    [ExcelImporter(IsLabelingError = true)]
    public class Contracts
    {
        [ImporterHeader(Name = "合同编码", IsIgnore = true)]
        [ExporterHeader(DisplayName = "合同编码", IsIgnore = true)]
        public string Id { get; set; }

        [ImporterHeader(Name = "合同编号")]
        [ExporterHeader(DisplayName = "合同编号")]
        public string Code { get; set; }

        [ImporterHeader(Name = "企业名称")]
        [ExporterHeader(DisplayName = "企业名称")]
        public string CustomerName { get; set; }

        [ImporterHeader(Name = "负责人")]
        [ExporterHeader(DisplayName = "负责人")]
        public string Contractor { get; set; }

        [ImporterHeader(Name = "负责人电话")]
        [ExporterHeader(DisplayName = "负责人电话")]
        public string ContractorMobile { get; set; }

        [ImporterHeader(Name = "签约商务")]
        [ExporterHeader(DisplayName = "签约商务")]
        public string MemberName { get; set; }

        [ImporterHeader(Name = "签约产品")]
        [ExporterHeader(DisplayName = "签约产品")]
        public string PrtName { get; set; }

        [ImporterHeader(Name = "签约时间")]
        [ExporterHeader(DisplayName = "签约时间", Format = "yyyy-MM-dd")]
        public DateTime SignDate { get; set; }

        [ImporterHeader(Name = "服务开始时间")]
        [ExporterHeader(DisplayName = "服务开始时间", Format = "yyyy-MM-dd")]
        public DateTime StartDate { get; set; }

        [ImporterHeader(Name = "服务结束时间")]
        [ExporterHeader(DisplayName = "服务结束时间", Format = "yyyy-MM-dd")]
        public DateTime EndDate { get; set; }

        //[ImporterHeader(Name = "表单数据", IsIgnore = true)]
        //[ExporterHeader(DisplayName = "表单数据", IsIgnore = true)]
        //public string FormData1 { get; set; }

        //[ImporterHeader(Name = "订单编号", IsIgnore = true)]
        //[ExporterHeader(DisplayName = "订单编号", IsIgnore = true)]
        //public string FormsBindId { get; set; }

        //[ImporterHeader(Name = "订单数据", IsIgnore = true)]
        //[ExporterHeader(DisplayName = "订单数据", IsIgnore = true)]
        //public string FormData2 { get; set; }

        [ImporterHeader(Name = "合同金额")]
        [ExporterHeader(DisplayName = "合同金额")]
        public string ProMoney { get; set; }
        
        [ImporterHeader(Name = "订单金额", IsIgnore = true)]
        [ExporterHeader(DisplayName = "订单金额")]
        public string OrderMoney { get; set; }

        [ImporterHeader(Name = "合同备注")]
        [ExporterHeader(DisplayName = "合同备注")]
        public string RemindText { get; set; }
    }

    public class FormDataModel
    {
        public string FormData { get; set; }
    }
}
